# coding=utf-8
from .bbs_front import bbs_index
from .user_view import user_view
from .post_collection import post_collection
from .api_view import api_view
from .exception_view import exception_view
#
DEFAULT_BLUEPRINT = (
    # ()
    (bbs_index, ''),
    (user_view, '/user'),
    (post_collection, '/collection'),
    (api_view, '/api'),
    (exception_view, '/error'),
)


#
def config_blueprint(app):
    for blueprint, url_prefix in DEFAULT_BLUEPRINT:
        app.register_blueprint(blueprint, url_prefix=url_prefix)